<?php $this->load->view('common/default_header.php');?>
<?php $this->load->view('common/nav.php');?>
<section class="integral">	
	<?php if(!empty($records)) {
        foreach($records as $data){
    ?>
    <dl>
        <dd>
            <p><button type="button" class="btn btn-warning btn-xs"><?php echo $desc[$data['name']];?></button>&nbsp;<?php echo $sources[$data['source']];?></p>
            <time><?php echo $data['create_time'];?></time>
        </dd>
        <span></span>
        <dt class="<?php echo ($data['action']=='reduce')?'green':'red';?>"><?php echo ($data['action']=='reduce')?"-":"+";?><?php echo $data['use_value'];?></dt>
    </dl>
   	<?php }?>
    <?php }else{?>
    <dl>
        <dd>
            暂无记录
        </dd>
    </dl>
    <?php }?>
    <div class="tj_tip">
        <p>只提供最近一个月的数据查询</p>
    </div>
</section>

<?php $this->load->view('common/wx_share.php');?>